package com.ipfsemc.ipfsemc.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.TreeMap;

@ApiModel(value = "Apply", description = "申请报备实体类")
@Data
public class Apply {

    @ApiModelProperty(notes = "ID")
    private Integer applyId;

    @ApiModelProperty(notes = "用户ID",required = true)
    private String userId;

    @ApiModelProperty(notes = "申请人ID", required = true)
    private String applicantId;

    @ApiModelProperty(notes = "备注")
    private String bak;

    @ApiModelProperty(notes = "申请状态", required = true, example = "0")
    private Integer applySate;

    @ApiModelProperty(notes = "申请时间",readOnly = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date applyTime;

    @ApiModelProperty(notes = "通过时间",readOnly = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date passTime;

    @ApiModelProperty(notes = "过期时间",readOnly = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date outTime;

    @ApiModelProperty(notes = "用户名")
    private String name;

    @ApiModelProperty(notes = "手机号码")
    private String phone;

    @ApiModelProperty(notes = "申请人姓名")
    private String applicantName;

    @ApiModelProperty(notes = "申请人电话")
    private String applicantPhone;

    @ApiModelProperty(notes = "原因", required = true)
    private String reason;

    @ApiModelProperty(notes = "真实姓名",required = true)
    private String realname;


}